import model from '../model/home'
// 这里对home页面进行逻辑控制处理后把数据传递到router
module.exports = async(ctx, next) => {
  let data = await model.index()
  await ctx.render('index', {
    asset: ctx.asset(['vendor', 'common', 'entry.index']),
    data
  })
  
}
